Remove Method (TKey)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Removes a key and all associated values from the dictionary. If the key is not present in the dictionary, it is unchanged and false is returned.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public bool Remove(
	TKey key
)
Visual Basic (Declaration)
Public Function Remove ( _
	key As TKey _
) As Boolean
Visual C++
public:
virtual bool Remove (
	TKey key
) sealed

Parameters

key
TKey
The key to remove.

Return Value

True if the key was present and was removed. Returns false if the key was not present.

See Also